package day0324;

import java.util.Arrays;

public class Test8 {
    public static void main(String[] args) {
        int[][] b = {{1, 2},
                     {3, 4}
        };
        //b[0]  =  {1,2}
        for (int i = 0; i < b.length; i++) {  //b.length:    b有几个小数组
            System.out.println(Arrays.toString(b[i])); //b[i]是小数组,i是0时， b[i]代表数组{1,2}
        }                                              //b[i]是小数组,i是1时， b[i]代表数组{3,4}


        for (int i = 0; i < b.length; i++) {
            for (int j = 0; j < b[i].length; j++) {
                System.out.print(b[i][j] + ",");
            }
            System.out.println();
        }
    }
}
